package entity;

import java.util.List;
import org.newdawn.slick.geom.Vector2f;
import physics.CollisionClass;
import physics.PhysicsEngine;

/**
 *
 * @author ant
 * 
 * Utility class of the functions needed for sensor operations. 
 */
public class Sensors
{
    /**
     * 
     * @param theWorld
     * @param theta1
     * @param theta2
     * @param radius
     * @return objects within the radius that are also within a given angle.
     */
    public static List<GameObject> pieSliceSensor(PhysicsEngine phsEngine, Vector2f pos, float theta1, float theta2, float radius)
    {
        List<GameObject> objs = phsEngine.getWithinRadius(pos, radius, null);
        return objs;
    }
}
